void monocromatizar_inf_c (
	unsigned char *src,
	unsigned char *dst,
	int h,
	int w,
	int src_row_size,
	int dst_row_size
) {
	for(int i = 0; i < h; i++)
	{
		for(int j = 0; j < w; j++)
		{
			unsigned char r, g, b, byte;
			r = src[i * src_row_size + j * 3 + 0];
			g = src[i * src_row_size + j * 3 + 1];
			b = src[i * src_row_size + j * 3 + 2];
			
			byte = r;
			if(g > byte) byte = g;
			if(b > byte) byte = b;

			dst[i * dst_row_size + j] = byte;
		}
	}
}
